package com.tanhua.admin.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Logging
 * @Description TODO 日志记录类
 * @Author JavaDev
 * @Date 2021/1/17 9:20
 * @Version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "user_logging")
public class Logging implements Serializable {

    private Long userId;    // 用户ID
    private Date login; // 上次登陆时间
    private Date logout; // 上次登出的时间
    private String lastLocation; // 上次登录地点
    private String equipment; // 上次登录的设备

}